package com.common.frame.utils;

import com.tencent.mmkv.MMKV;

public class KvUtils {

    private static volatile MMKV kv;

    public static MMKV getKv(){
        if (kv == null){
            synchronized (KvUtils.class){
                if (kv == null){
                    MMKV.initialize(AppGlobals.getApplication());
                    kv = MMKV.defaultMMKV();
                }
            }
        }
        return kv;
    }

}
